package main

import (
	"fmt"
	"os"
)

func main() {

	var conv Converter
	f := os.Stdout
	fmt.Println("Convert...")
	conv.OpenMGProject("/home/rk/test/mg_data/x.MPJ")
	//conv.OpenMGFile("/home/rk/test/mg_data/J_boundary.WL")
	//conv.OpenMGFile("/home/rk/test/mg_data/J_gd.WL")

	conv.OpenMGFile("/home/rk/test/mg_data/J_boundary.WL")
	conv.Convert()
	os.Stdout, _ = os.Create("/home/rk/tmp/kgm.wkt")
	conv.ToLines(os.Stdout, 2362)
	os.Stdout = f
}
